/*
 * @Author: zhangzhen
 * @Date: 2022-07-05 16:05:37
 * @LastEditors: zhangzhen
 * @LastEditTime: 2023-04-18 10:21:21
 * @Description:
 *
 */
import { setLocalStorage } from '@/units/unit'

export const iconArr = [
  {
    name: '掘金',
    url: 'https://juejin.cn/',
    iconUrl: 'https://lf3-cdn-tos.bytescm.com/obj/static/xitu_juejin_web/f5188ac005a69d272fc6161b3c521d15.svg'
  },
  {
    name: 'CSDN',
    url: 'https://www.csdn.net/',
    iconUrl: 'https://g.csdnimg.cn/static/logo/favicon32.ico'
  },
  {
    name: '哔哩哔哩',
    url: 'https://www.bilibili.com/',
    iconUrl: 'https://searchplugin.csdn.net/api/v2/favicon/get?url=https://www.bilibili.com'
  },
  {
    name: '知乎',
    url: 'https://www.zhihu.com/',
    iconUrl: 'https://static.zhihu.com/heifetz/assets/apple-touch-icon-60.8f6c52aa.png'
  },
  {
    name: 'Vue中文文档',
    url: 'https://cn.vuejs.org/',
    iconUrl: '/src/assets/vue.svg'
  },
  {
    name: 'Vite',
    url: 'https://cn.vitejs.dev/guide/',
    iconUrl: 'https://cn.vitejs.dev/logo-with-shadow.png'
  },
  {
    name: 'w3cSchool',
    url: 'https://www.w3school.com.cn/',
    iconUrl: 'https://www.w3school.com.cn/ui2019/logo-48-red.png'
  },
  {
    name: 'MDN',
    url: 'https://developer.mozilla.org/zh-CN/docs/Learn',
    iconUrl: 'https://developer.mozilla.org/favicon-48x48.cbbd161b.png'
  },
  {
    name: 'React中文文档',
    url: 'https://react.docschina.org/',
    iconUrl:
      ''
  },
  {
    name: 'ahooks',
    url: 'https://ahooks.js.org/zh-CN/hooks/use-request/index',
    iconUrl: '/src/assets/ahooks.svg'
  },
  {
    name: 'Ant Design',
    url: 'https://ant-design.gitee.io/components/overview-cn/',
    iconUrl: 'https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg'
  },
  {
    name: 'Lodash',
    url: 'https://www.lodashjs.com/',
    iconUrl: 'https://www.lodashjs.com/img/logo.png'
  },
  {
    name: '谷歌翻译',
    url: 'https://translate.google.cn/?js=n&prev=_t&hl=zh-CN&ie=UTF-8&layout=1&eotf=1&sl=zh-CN&tl=en&op=translate',
    iconUrl:
      ''
  }
]

export const configs = [
  {
    timeColor: 'white',
    timeSize: '90px',
    dateColor: 'white',
    dateSize: '20px',
    iconBorderColor: 'white',
    iconNameColor: 'white',
    searchWebName: [
      { text: '百度', value: '1' },
      { text: '必应', value: '2' }
    ],
    searchValue: '1'
  }
]
export const backgroundImg = ['/src/assets/1659087151545.png', '/src/assets/1656317050762.png']

const nowImg = '/src/assets/1656317050762.png'

export const setStorage = () => {
  setLocalStorage('iconArr', iconArr)
  setLocalStorage('configs', configs)
  setLocalStorage('backgroundImg', backgroundImg)
  setLocalStorage('nowImg', nowImg)
}
